//
//  WJTab1Controller.m
//  JerryIos
//
//  Created by jerrywang on 2018/2/5.
//  Copyright © 2018年 王军. All rights reserved.
//

#import "WJTab1Controller.h"

@interface WJTab1Controller ()

@end

@implementation WJTab1Controller

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //设置背景色
    self.view.backgroundColor = WJColor(206, 206, 206);
    
    //设置导航条
    [self setupNavBar];
}

-(void)setupNavBar {
    //左边的按钮
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImage:[UIImage imageNamed:@"icon_game_normal"]
                                                                 highImage:[UIImage imageNamed:@"icon_game_selected"]
                                                                    target:self
                                                                    action:@selector(game)];
    //右边的按钮
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem itemWithImage:[UIImage imageNamed:@"icon_share_normal"]
                                                                  highImage:[UIImage imageNamed:@"icon_share_selected"] target:self
                                                                     action:@selector(share)];
    //中间的标题
    self.navigationItem.title = @"精华";
}

-(void)game{
    WJLog(@"game click");
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}

-(void)share{
    WJLog(@"share click");
}

@end
